package world.snowcrystal.model.dto.search;

import world.snowcrystal.common.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 查询请求
 *
 *  tianqing
 *  
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SearchRequest extends PageRequest implements Serializable,SearchSupport {

    /**
     * 搜索词
     */
    private String searchText;

    /**
     * 类型
     */
    private String type;

    private static final long serialVersionUID = 1L;

    @Override
    public String getSearchField() {
        return searchText;
    }

    @Override
    public void setSearchField(String searchField) {
        this.searchText = searchField;
    }
}